package lxh.groovy.basic;

x = 5;
y = (x >5) ? "greater":"less";
println y;
//assert y == "greater";


x = 1;
x= "aaa";
x = new Integer(100);
switch(x)
{
	case 1:
		println "1";
		break;
	case 2:
		println "2";
		break;
	case 'a':
		println 'a';
		break;
	case "aaa":
		println "aaa";
		break;
	case Integer:
		println "is integer class";
		break;
	default:
		println "default";
}

for(i in 1..<10){print i+" "}